<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>18_flex布局</title>
    <link rel="stylesheet" href="./css/basic.css">
    <style>
        .container_row {
            display: flex;
            flex-direction: row;
            /* justify-content: center; */
            /* 居中对齐 */
            /* justify-content: space-between; */
            /* 两头对其 */
            /* justify-content: space-evenly; */
            /* 均分 */
            justify-content: space-around;
            /* 间隔相等 */
        }
        .row_item {
            width: 10vw;
            height: 100px;
            background-color: pink;
            margin: 0 10px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            color: white;
        }
        .container_row :nth-child(6),   .container_row :nth-child(1){
            flex: 1;
        }
    </style>
</head>
<body>
    <h1>横向布局</h1>
    <div class="container_row">
       <div class="row_item">1</div>
       <div class="row_item">2</div>
       <div class="row_item">3</div>
       <div class="row_item">4</div>
       <div class="row_item">5</div>
       <div class="row_item">6</div>
    </div>
    
</body>
</html>